﻿using System.Threading;
using System.Threading.Tasks;

namespace SW.DDD.Application
{
    /// <summary>
    /// 后台任务队列
    /// </summary>
    public interface IBackgroundCommandQueue
    {
        Task<ICommand?> DequeueAsync(CancellationToken cancellationToken);
        void QueneCommand(ICommand command);
    }
}
